<!--  -->
<template>
  <div class="">
    <ul>
      <li>{{ id }}</li>
      <li>{{ name }}</li>
    </ul>
    <input type="text" />
  </div>
</template>

<script>
export default {
  name: "MyView",
  //import引入的组件需要注入到对象中才能使用
  components: {},
  props: ["id", "name"],
  methods: {},
  data() {
    //这里存放数据
    return {};
  },
};
</script>
<style lang='less' scoped>
//@import url(); 引入公共css类
</style>